package com.ldu.exam.controller;

import java.util.Set;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ldu.exam.model.SubmitQuestion;
import com.ldu.exam.service.MarkPaperService;

@RequestMapping("/markPaper")
@RestController
public class MarkPaperController 
{
	@Autowired MarkPaperService service;
	
	@PutMapping()
	public Object markPaper(@RequestBody Set<SubmitQuestion> set)
	{
		return this.service.markPaper(set);
	}
	
	@GetMapping(value="/noPage")
	public Object findStudentByNoPage()
	{
		return this.service.findStudentByNoPage();
	}
}
